home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
6984
/
6984.xpi
/
chrome
/
lazarus.jar
/
content
/
preferences-overlay.js
< prev
next >
Wrap
Text File
|
2009-11-24
|
858b
|
29 lines
/**
*
*/
Lazarus.initClearNowButton = function(){
//it appears the "clearDataNow" button doesn't appear until the
//privacy pane is selected, soooo
if (Lazarus.$("clearDataNow")){
Lazarus.$("clearDataNow").addEventListener("command", Lazarus.onClearNow, false);
}
else {
Lazarus.$("panePrivacy").addEventListener("paneload", Lazarus.initClearNowButton, false);
}
}
/**
* clearDataNow button has been pushed.
*/
Lazarus.onClearNow = function(evt){
//only fire the event if not privacy.sanitize.promptOnSanitize
Lazarus.getBrowser().Lazarus.fireClearPrivateDataIfNoPrompt();
}
window.addEventListener("load", Lazarus.initClearNowButton, false);
//refresh the statusbar icon (if the user has set/unset their password)
window.addEventListener("unload", Lazarus.getBrowser().Lazarus.refreshIcon, false);